﻿@{
    ViewBag.Title = "SelfDefineFunc";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Self Define Function</h2>
<br />
<h3>Path: @ViewBag.Path</h3>
<br />
<h3>Extended JS: /JsLib/G_Core.js</h3>
<br />
<h3>See the result on console</h3>
<br />

<script type="text/javascript">

    var selfFunc = function () {
        ZEUS.DEBUG.log("First Initialization!");
        selfFunc = function () {
            ZEUS.DEBUG.log("-- Function Logic --");
        };
    };

    window.onload = function () {
        /*
        Self Define Function
        */

        ZEUS.DEBUG.log("1. ** Self Define Function **");
        selfFunc();
        selfFunc();
        selfFunc();
        ZEUS.DEBUG.log("<br />");
    };

</script>

